<?php
namespace app\index\validate;

use think\Validate;

class User extends Validate
{
    protected $rule = [
        'userNo'  =>  'require|max:25',
        'password' =>  'require',
    ];
    protected $message  =   [
        'userNo.require' => '用户名不能为空',
        'userNo.max'     => '名称最多不能超过25个字符',
        'password.require'   => '密码不能为空'
    ];
}
